const getters = {
   sidebar: state => state.app.sidebar,
   device: state => state.app.device,
   // token 快捷访问
   token: state => state.user.token,
   name: state => state.user.userInfo.username,
   userId: state => state.user.userInfo.userId,
   staffPhoto: state => state.user.userInfo.staffPhoto,
   // 建立公司 id 的快捷访问
   companyId: state => state.user.userInfo.companyId,
   // 建立权限模块下得快捷访问
   routes: state => state.permission.routes
}
export default getters
